package com.yuanrui.auth.domain.convert;

import com.yuanrui.auth.basic.entity.AuthUser;
import com.yuanrui.auth.domain.entity.AuthUserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserConverter {
    AuthUserConverter INSTANCE = Mappers.getMapper(AuthUserConverter.class);

    //将用户信息转换为用户信息BO
    AuthUserBO convertToBO(AuthUser authUser);

    //将用户信息BO转换为用户信息
    AuthUser convertToEntity(AuthUserBO authUserBO);

    List<AuthUserBO> convertToEntity(List<AuthUser> authUserList);
}
